#!/usr/bin/env python

import os
import urllib2
import cgi
import random

# Google App Engine Python SDK includes Django 1.2 and 0.96, but 0.96 is 
# imported by default when import the django package.  The code below sets 
# configures the SDK to import Django version 1.2. 
os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'
from google.appengine.dist import use_library
use_library('django', '1.2')

from google.appengine.ext import webapp
from google.appengine.ext.webapp import template
from google.appengine.ext.webapp import util

from google.appengine.ext import db
from google.appengine.api import users

from django.utils import simplejson

from google.appengine.api import images

from django.utils.html import urlize

import urllib
import htmlentitydefs
import re

from datetime import datetime, timedelta
            
class HomePageHandler(webapp.RequestHandler):
    def get(self):
        
        # Define dictionary with entries that will be placed in the index.html file
        template_values = {
            #'questions_vetted': questions_vetted,
            #'questions_not_vetted': questions_not_vetted
        }
        
        path = os.path.join(os.path.dirname(__file__), "./map.html") # Get path of index.html file
        rendered_text = template.render(path, template_values) # Render text for template
        self.response.out.write(rendered_text) # Send response containing index.html contents

from google.appengine.ext import webapp

#from AdminPage                  import AdminPage
#from AnswerHandler              import AnswerHandler
#from ChannelConnectedHandler    import ChannelConnectedHandler
#from ChannelDisconnectedHandler import ChannelDisconnectedHandler

def main():
	app = webapp.WSGIApplication([
		('/', HomePageHandler)
		], debug=True)
	util.run_wsgi_app(app)

if __name__ == '__main__':
	main()